<?php
$aksi="modul/mod_option/aksi_option.php";
switch($_GET[act]){
  // Tampil Komentar
  default:
  $twitter  = mysql_query("SELECT nilai_opsi FROM opsi where id_opsi='1'");
  $r    = mysql_fetch_array($twitter);
	$facebook = mysql_query("select nilai_opsi from opsi where id_opsi='2'");
	$s = mysql_fetch_array($facebook);
	$youtube = mysql_query("select nilai_opsi from opsi where id_opsi='3'");
	$t = mysql_fetch_array($youtube);
	$badge = mysql_query("select nilai_opsi from opsi where id_opsi='4'");
	$t1 = mysql_fetch_array($badge);
	$ym = mysql_query("select nilai_opsi from opsi where id_opsi='5'");
	$yms = mysql_fetch_array($ym);
	
	
    echo "<h2>Option</h2>
          <form method=POST enctype='multipart/form-data' action=$aksi?module=option&act=update>
          <table>
      <tr><td>Twitter</td><td> : <input type=text size='100' name='twitter' value='$r[nilai_opsi]'></td></tr>
      <tr><td>Facebook</td><td> : <input type=text size='100' name='facebook' value='$s[nilai_opsi]'></td></tr>
		  <tr><td>Youtube</td><td> : <input type=text size='100' name='youtube' value='$t[nilai_opsi]'></td></tr>
		  <tr><td>Badge</td><td> : <input type=text size='100' name='badge' value='$t1[nilai_opsi]'></td></tr>
		  <tr><td>YM</td><td> : <input type=text size='100' name='ym' value='$yms[nilai_opsi]'></td></tr>
		  <tr><td colspan=2><input type=submit value=Update>
                            <input type=button value=Batal onclick=self.history.back()></td></tr>
          </form></table>";
    break;  
}
?>
